﻿/// <reference path="../business/SystemCode.js"/>
/// <reference path="../config/sw-config-default.js"/>
//配置文件
$iconst = {
    ///#region 系统公共项
    Common: {
        error: 'Failed to the opreate, Please try again or contact the System Administrator.'
        , confirm: 'Are you confirm this?'
        , save: 'Save Succeeded.'
        , saveerror: 'Failed to save data.Please try again or contact the System Administrator.'
        , boolTrue: 'True'
        , boolFalse: 'False'
        , del: 'Delete Succeeded.'
        , delerror: 'Failed to delete data.Please try again or contact the System Administrator.'
        , operate: 'Succeeded.'
        , upload: 'Upload Failed.'
        , uploadsize: 'Upload Failed.The size is great than max size.'
        , noright: 'You has no right to do this opearte.'
        , login: 'Please login in system first!'
    }
    ///#endregion

    ///#region enum对象
        , Enum: {
            boolhtm: [{ Key: 0, Value: '<span title="Fasle" class="htm_false"/>' }, { Key: 1, Value: '<span title="True" class="htm_true"/>'}],
            bool: [{ Key: 0, Value: 'False' }, { Key: 1, Value: 'True'}]
            , protype: [{ Key: 0, Value: 'Category1' }, { Key: 1, Value: 'Category2'}]
        }
        , panelType: {
            search: 'search',
            view: 'view',
            edit: 'edit'
        }

    ///#endregion

    ///#region controls
        , controls: {
            button: {
                ok: 'OK'
                , cancel: 'Cancel'
                , search: 'Search'
                , view: 'View'
                , edit: 'Edit'
                , del: 'Delete'
                , add: 'Add'
                , save: 'Save'
                , back: 'Back'
                , help: 'Help'
                , print: 'Print'
            }
            , chooser: {
                select: '--Select--'
                , all: '--All--'
            }
            , grid: {
                seqtext: 'No.'
                , radiotext: 'Select'
            }
            , pager: {
                pagesize: 'Change Page Size'
                , pageindex: 'Current Page Index.Press "enter" can trun to your input index.'
                , frist: 'Frist'
                , prve: 'Prve'
                , next: 'Next'
                , last: 'Last'
                , reload: 'Reload'
                , total: 'TotalRecord:'
            }
            , modal: {
                title: 'IPsa2.0'
            }
            , message: {
                normal: 'Message'
               , warning: 'Warning'
               , error: 'Error'
               , confirm: "Confirm"
               , btnOK: 'OK'
               , btnCancel: 'Cancel'
            }
            , datepicker: {
                clear: 'Clear'
                , yearSelect: 'Please select year:'
                , monthSelect: 'Please select month:'
            }
        }
    ///#endregion

    ///#region validator
     , validator: {
         required: "This field is required."
         , textRange: "Between 『{0}』 and 『{1}』 characters allowed."
         , integerRule: "Only Intger."
         , numberRule: "Number only ,and should be『{0}』fraction"
         , numberRange: "Between 『{0}』and 『{1}』Number allowed."
         , dateRule: "Invalid date, must be in 『YYYY-MM-DD』 format"
         , datetimeRule: "Invalid datetime, must be in 『YYYY-MM-DD hh:mm:ss』 format"
         , dateRange: "Should be {0}."
         , greatthan: " great than 『{0}』"
         , lessthan: " less than 『{0}』"
         , and: " and"
         , custrule: "The Rule is error."
         , rules: {
             email: 'Invalid email address'
            , url: 'Invalid url address'
            , onlyletter: 'Letters only'
            , noSign: 'No special caracters allowed'
            , img: 'Must be image file. [.jpg|.gif|.png|.bmp]'
            , doc: 'Must be document file. [.doc|.xls|.txt]'
         }
         , ctrRange: "Please choose {0} items."
     }
    ///#endregion


    ///#region date
       , date: {
           months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
            , shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
            , days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
            , shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
       }
    ///#endregion
    , msg: {
        m001: 'The Name is already exists!',
        m002: 'Welcome Back!',
        m003: 'Register Success!',
        m004: 'Send Success!',
        m005: 'The Name or Password is incorrect!',
        m006: 'The Old Password is incorrect!'
    }
}
